@extends('host.custom.common.common')

@section('body')
        <!-- top_test -->
<div id="top_test"> </div>

<!-- web_logo_search -->
<div id="web_logo_search"> </div>

<!-- comm_nav -->
<div id="comm_nav"> </div>


<div class="com-w mt20">
    <div class="wrapper clearfix">
        <div  class="w220 mr20 comm-left-menu">
            <div class="menu-top-title">采购商中心</div>
            <div id="leftmenuitems"></div>
        </div>

        <div class="w960 comm-main">
            <div class="main-release clearfix">
                <div class="main-release-nav">您当前的位置：<a href="javascript:void(0)">首页</a> > <a href="javascript:void(0)">采购商中心</a>><a href="javascript:void(0)">账户首页</a></div>
                <div class="main-release-title">
                    <span class="icons"></span>
                    <span class="release-title-h3 f16">账户首页</span>
                </div>
                <div class="main-release-from">
                    <div class="user-index clearfix">
                        <div class="index-info">
                                <span class="info-list" style="width: auto">
                                    欢迎您， <font class="username">{{ Auth::user()->user }}</font>
                                    <a href="{{ route('account.purchaser.company') }}" class="edit">编辑公司资料</a>
                                </span>
                                <span class="info-list">
                                    <span class="info-list-l">采购商名称：</span>
                                    <span class="info-list-r">{{ Auth::user()->information->company }}</span>
                                </span>
                                <span class="info-list">
                                    您有 <font class="news">0</font>
                                    条短消息，
                                    <a href="{{ route('account.message') }}" class="click">点击查看</a>
                                </span>
                        </div>
                    </div>
                    <div class="main-bottom">
                        <ul class="clearfix">
                            <li class="bottom-t">供求信息提醒：</li>
                            <li class="bottom-b">
                                <a class="f-orange" href="{{ route('account.counter-enquiry.index') }}">新收到的报盘信息（<span class="f-orange f14" >{{ Auth::user()->receiveCounters()->where('created_at', '>=', date('Y-m-d', time() - 84200 * 3))->count() }}</span>）</a>
                            </li>
                        </ul>
                        <ul class="clearfix">
                            <li class="bottom-t">分销交易提醒：</li>
                            <li class="bottom-b">
                                <a class="f-orange" href="{{ route('account.purchaser.order.index') }}">待付款（<span class="f-orange f14" >{{ Auth::user()->orders()->whereStatus(2)->count() }}</span>）</a>
                                <a class="f-orange">已付款（<span class="f-orange f14" >0</span>）</a>
                                <a class="f-orange">待收货确认（<span class="f-orange f14" >0</span>）</a>
                                <a class="f-orange">已完成（<span class="f-orange f14" >0</span>）</a>
                            </li>
                        </ul>
                        <ul class="clearfix">
                            <li class="bottom-t">分销关系提醒：</li>
                            <li class="bottom-b">
                                <a class="f-orange" href="{{ route('account.purchaser.my-authorization-request.index') }}">报名申请中（<span class="f-orange f14" >{{ Auth::user()->purchaserAuthorizationRequests()->whereStatus(1)->count() }}</span>）</a>
                                <a class="f-orange" href="{{ route('account.my-provider.index') }}">合作中的供应商（<span class="f-orange f14" >{{ Auth::user()->purchaserAuthorizationRequests()->whereStatus(2)->count() }}</span> ）</a>
                                <a class="f-orange" href="{{ route('account.my-provider.index') }}">终止的供应商（<span class="f-orange f14" >{{ Auth::user()->purchaserAuthorizationRequests()->whereStatus(3)->count() }}</span>）</a>
                            </li>
                        </ul>
                    </div>
                </div>
            </div>
        </div>
    </div>
</div>


<!-- foot_nav -->
<div id="foot_nav"> </div>

<div id="bottom_main"></div>

<script>
    $(function(){
        // 渲染页面-通用部分；
        commTemplUtil.initPage();

        // 渲染左侧菜单;
        commTemplUtil.initCommLeftMemu();
    });
</script>
@stop